* {
   margin: 0;
   padding: 0;
   list-style: none;
}
/* 容器样式 */
#wrapper {
    width: 1200px;
    margin: 10px auto 0 auto;
    position: relative;
}


/* 每个图片容器的样式 */

#wrapper li {
    overflow: hidden;
}

#wrapper li img {
    transition: transform .8s;
}

/* title样式 */
#wrapper li p {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 100%;
    left: 0;
    background-image: linear-gradient(#aaa, #000000);
    opacity: 0.8;
    z-index: 10;
    color: #fff;
    box-sizing: border-box;
    padding: 80px 20px;
}

#wrapper li:hover > img {
    transform: scale(1.2);
}
